package org.carl.base.driving.entity;

import com.pugwoo.dbhelper.annotation.Column;
import com.pugwoo.dbhelper.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * micro_send_message
 *
 * @author
 */
@Data
@Table("bs_send_message")
@EqualsAndHashCode(callSuper = false)
public class SendMessage extends BaseEntity {

    /**
     * 消息发送ID
     */
    @Column(value = "send_id", isKey = true, isAutoIncrement = false)
    private String sendId;

    /**
     * 事件名称
     */
    @Column("event_name")
    private String eventName;

    /**
     * 路由
     */
    @Column("exchange")
    private String exchange;

    /**
     * 路由策略
     */
    @Column("routing_key")
    private String routingKey;

    /**
     * 数据
     */
    @Column("data")
    private String data;

    /**
     * 发送时间
     */
    @Column("gmt_send")
    private Date gmtSend;

    /**
     * 确认时间
     */
    @Column("gmt_confirm")
    private Date gmtConfirm;

    /**
     * 状态
     */
    @Column("handle_state")
    private Integer handleState;
}